KERNEL_PATH=../02day_env/linux-5.4.31
ifeq ($(KERNELRELEASE),)
all:
	make -C $(KERNEL_PATH) M=$(PWD) modules
	arm-linux-gnueabihf-gcc test.c -o test -Wall
clean:
	make -C $(KERNEL_PATH) M=$(PWD) clean
	rm test
else
	obj-m += led_drv.o
endif